package lab02.test10;

/**
 * Created by JAVA on 2017/10/21.
 */
public class Test10 {
    public static void main(String[] args) {
        People people = new People();
        people.name="李明";
        people.age=19;
        System.out.println(people.toString());
        ChinaPeople chinaPeople = new ChinaPeople();
        chinaPeople.name = "张飞";
        chinaPeople.age = 17;
        chinaPeople.country = "中国";
        System.out.println(chinaPeople.toString());
        AmJericanPeople americanPeople = new AmJericanPeople();
        americanPeople.name="kim";
        americanPeople.age= 19;
        americanPeople.country = "美国";
        System.out.println(americanPeople.toString());
        BeiJingPeople beiJingPeople = new BeiJingPeople();
        beiJingPeople.name = "丽丽";
        beiJingPeople.age= 18;
        beiJingPeople.country = "中国";
        beiJingPeople.province = "北京";
        System.out.println(beiJingPeople.toString()+"\n");
    }
    }
